Going against the Grain

نویسندگان

  • Gene Myers
  • Mudita Jain
چکیده

We review a general, space and time eecient technique for delivering a sequence of values computable by a recurrence relation, in the order opposing the data-dependencies of the recurrence. The technique provides a series of time/space tradeoos we characterize by parameter K > 0. Namely, N values can be delivered against the grain in O(KN) time and O(KN 1=K) space. This basic idea is not new, but here we present it in a framework exposing its essential nature and we give a concise yet easily understood explanation of it in terms of counting in a radix-N 1=K number system. We then show how to apply this paradigm to a couple of problems in sequence comparison, a domain where it has here to fore not been used. We show that in the limiting case of K = log 2 N , the method coincides with the well-known divide-and-conquer algorithm of Hirschberg. Thus, our observation provides a continuum of time/space tradeoos for all comparison problems that have appealed to the Hirschberg paradigm for greater space eeciency, e.g., sequence comparison with concave weights, approximate matching of regular expressions, etc. In particular, an O(M N +(M +N)W log(M +N)) algorithm for computing a representation of all suboptimal alignments is a corollary of our technique with the important property that only O(M + N + W log(M + N)) working storage is required versus the O(M + N + F) space of an earlier result by Chao. Here F is the size of a graph modeling all of the suboptimal alignments, and W is its width. Since F may be O(M N) this savings can be important in contexts where only summaries of the suboptimal region is required, e.g., the number of suboptimal paths with score greater than some threshold. Another application to computing locally optimal alignments as deened by Sellers illustrates the broad utility of the technique. 1 The Paradigm 1.1 Introduction Consider a one-variable recurrence: f n = h(f n?1 ; n) if n > 0 d 0 otherwise where the values f n are from domain D, d 0 is a value in D, and h : D@ 7 ! D is a computable function. Further assume that O(S) memory is required to store a value from the domain D and that h(d; n) is computable in O(T) time for any

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Going with the Grain of Cognition: Applying Insights from Psychology to Build Support for Childhood Vaccination

Childhood vaccination is widely considered to be one of the most successful public health interventions. Yet, the effective delivery of vaccination depends upon public willingness to vaccinate. Recently, many countries have faced problems with vaccine hesitancy, where a growing number of parents perceive vaccination to be unsafe or unnecessary, leading some to delay or refuse vaccines for their...

متن کامل

Reaction of Some Sorghum Varieties Against Grain Mold and Fumonisin Accumulation

Grain mold caused by Fusarium verticillioides is one of the most dangerous food and feed safety challenges in sorghum production. The most efficient solution for reducing the hazards of the disease is breeding resistant varieties. In order to find the resistant sorghum varieties, nine sorghum varieties were evaluated for their reaction to F. verticillioides and fumonisin accumulation in their ...

متن کامل

Moving Against the Grain: Exploring Genre-Based Pedagogy in a New Context

Considerable literature explores the contribution of genre teaching in English academic writing. The role of this approach in developing academic writing of Iranian EFL students, however, has been underresearched. This study investigated the implications of using this approach with a class of undergraduate students in Iran. The current study reports on the findings of a project which employed a...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1996